export type OptionType = {
    value: string
    text: string,
}

export type QuestionRadioPropsType = {
    title?: string
    isVertical?: boolean
    options?: OptionType[]
    value?: string

    // 用于PropComponent
    onChange?:(newProps: QuestionRadioPropsType) => void
    disabled?: boolean
}

// 默认属性的值
export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
    title: '单选标题',
    isVertical: false,
    options:[
        { value: 'item1', text:'选项1' },
        { value: 'item2', text:'选项2' },
        { value: 'item3', text:'选项3' },
    ],
    value:'',
}